package org.sgx.jsutil.client.appstate;

import java.util.Map;

/**
 * using gwt History this class let navigate to gwtgapi-gui app main states/places
 * @author sg
 *
 */
public interface AppStateManager {
	
	Map<String, AppState> getStates(); 
	
	void navigate(AppState s,String params); 
	

	public abstract AppState getNotFoundState(); 

	public abstract AppState getDefaultState();
//	String getHistoryPrefix(); 
	
	/**
	 * gets the state name from url. if not state is found returns null. 
	 * @param url
	 * @return
	 */
	String urlContainsState(String url); 
//	void addStateListener(StateListener l);
//	void removeStateListener(StateListener l); 
}

